package com.jy.modules.cims.data.dto;

import java.math.BigDecimal;
import java.util.List;

import com.jy.modules.cims.common.CimsConstant;
import com.jy.modules.cims.data.common.dto.TCMmCostPlanDTO;


public class QuotaEstimateDto {

	private String cooperorgCode;
	private String cooperorgName;
	private String agreementName;
	private String contractCode;
	private String contractName;
	private String packageName;
	private String billDate;
	private BigDecimal matchAmount;
	private BigDecimal returnAmount;
	private BigDecimal repayAmount;
	private String startDate;
	private BigDecimal repaySum;
	private BigDecimal returnSum;
	
	private BigDecimal matchAmountSum;
	private int cnt; 
	
	private List<TCMmCostPlanDTO> costPlanList;
	
	public String getCooperorgCode() {
		return cooperorgCode;
	}
	public void setCooperorgCode(String cooperorgCode) {
		this.cooperorgCode = cooperorgCode;
	}
	public String getCooperorgName() {
		return cooperorgName;
	}
	public void setCooperorgName(String cooperorgName) {
		this.cooperorgName = cooperorgName;
	}
	public String getAgreementName() {
		return agreementName;
	}
	public void setAgreementName(String agreementName) {
		this.agreementName = agreementName;
	}
	public String getContractCode() {
		return contractCode;
	}
	public void setContractCode(String contractCode) {
		this.contractCode = contractCode;
	}
	public String getContractName() {
		return contractName;
	}
	public void setContractName(String contractName) {
		this.contractName = contractName;
	}
	public String getPackageName() {
		return packageName;
	}
	public void setPackageName(String packageName) {
		this.packageName = packageName;
	}
	public String getBillDate() {
		return billDate;
	}
	public void setBillDate(String billDate) {
		this.billDate = billDate;
	}
	public BigDecimal getMatchAmount() {
		return matchAmount;
	}
	public void setMatchAmount(BigDecimal matchAmount) {
		this.matchAmount = matchAmount;
	}
	public String getStartDate() {
		return startDate;
	}
	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}
	public BigDecimal getMatchAmountSum() {
		return matchAmountSum;
	}
	public void setMatchAmountSum(BigDecimal matchAmountSum) {
		this.matchAmountSum = matchAmountSum;
	}
	public int getCnt() {
		return cnt;
	}
	public void setCnt(int cnt) {
		this.cnt = cnt;
	}
	public List<TCMmCostPlanDTO> getCostPlanList() {
		return costPlanList;
	}
	public void setCostPlanList(List<TCMmCostPlanDTO> costPlanList) {
		this.costPlanList = costPlanList;
	}
	public static CreditDetailQueryDto toEntity(QuotaEstimateDto bean){
		CreditDetailQueryDto dto = new CreditDetailQueryDto();
		dto.setDealType(CimsConstant.DEAL_TYPE_MONTH_BACK);
		dto.setCooperorgCode(bean.getCooperorgCode());
		dto.setContractCode(bean.getContractCode());
		dto.setPackageNum(bean.getPackageName());
		dto.setSettleDate(bean.getStartDate());
		return dto;
	}
	public BigDecimal getReturnAmount() {
		return returnAmount;
	}
	public void setReturnAmount(BigDecimal returnAmount) {
		this.returnAmount = returnAmount;
	}
	public BigDecimal getRepayAmount() {
		return repayAmount;
	}
	public void setRepayAmount(BigDecimal repayAmount) {
		this.repayAmount = repayAmount;
	}
	public BigDecimal getRepaySum() {
		return repaySum;
	}
	public void setRepaySum(BigDecimal repaySum) {
		this.repaySum = repaySum;
	}
	public BigDecimal getReturnSum() {
		return returnSum;
	}
	public void setReturnSum(BigDecimal returnSum) {
		this.returnSum = returnSum;
	}
	
}
